package cn.xbtop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.bean.TRole;
import cn.xbtop.mapper.TRoleMapper;
import cn.xbtop.service.TRoleService;
/**
 * @author  Mxb
 * @date  2020/6/6 18:36
 * @version 1.0
 */
@Service
public class TRoleServiceImpl implements TRoleService{

    @Resource
    private TRoleMapper tRoleMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TRole record) {
        return tRoleMapper.insert(record);
    }

    @Override
    public TRole selectByPrimaryKey(Integer id) {
        return tRoleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TRole record) {
        return tRoleMapper.updateByPrimaryKey(record);
    }

}
